Show warning when commit message is empty and preference is set

If the commit message is empty we show a warning, and if the warning
is already visible we allow the user to proceed.

Bug: 47752
Change-Id: Idba707abaea8b08a94f7fa4d5bc5b1e35261a572
Merge "Show warning when commit message is empty and preference is set"