I had the impression that he got Magnus out because he feared someone would kill him. Magnus may well be Ragnar's son, even if he refused to acknowledge him (it certainly looked as if Kwendrith was having sex with him during the pee scene), it is likely he is and will be the son that kills Lagertha.