Fixed a NPE

This fixes a NPE, when hiding a pack with no account selected.