Closes the tab only if the user chaged the content

Reported-by: bnurbekov
Signed-off-by:Batyrlan Nurbekov <bnurbekov@wpi.edu>