Put the check for empty comment outside of the section anchor section of EditPage::internalAttemptSave()

Also reorganise checks for better clarity

Change-Id: Ib75b2c0b0c240459d58618eed283b547aaefd7f6
Merge "Put the check for empty comment outside of the section anchor section of EditPage::internalAttemptSave()"