Support viewing tickets without a departments

This can happen when associated department is private and the system has no
default department (which is possible with v1.6 upgrade)