Missing boy found safe with legal guardian amid ‘complicated’ custodial issues