Handled the ModelNotSetException.