NOJIRA Fix for headers already sent error in Installer

It was caused by BaseLabel trying to generate sort values for
relationship type labels, which incidentally don't have a name_sort
field.