Checks that the buffer in canvas has been saved. This method should only be used when a frame group is not used. reason is used in the warning dialog to the users before saving.