Fix bug allowing user to sort by empty row

Hotfix for clicking sort by on the blank property name row.