prevent possible fatal error in LightboxController::getMediaDetail