Police were called after a toddler was found by a member of the public