fixed breaking Gii preview when file is unchanged

fixes #3693
fixed test break