Fixing issue with conditional on hook_entity_view_mode_alter