Fixed bug in empty-heading checker.