Prevent submitting commits when nothing is staged.