Check for nil before splitting contact_ids param in ConversationsController

Fixes #4227