Fixing bug in WhereVM always returning null if model type passed in