Remove redundant msg != null checks.