fixed breaking Gii preview when file is unchanged

fixes #3693