Properly return nil when failed to parse the message