Fix another NPE

not every device has a secondary storage...