Fix runtime due to processing hydrotray at loc=null

As in title. Fixes #6489.