Fix null returned from messages with no parent.