Handle possible jQuery error with DnD of contacts