base1: The localStorage can have its access denied
base1: The localStorage can have its access denied

When running in an <iframe> sandbox the window.localStorage can have
its access denied, so handle this case.

This will need more work to actually make things work
for sandboxing.

Closes #6259
Reviewed-by: Peter <a316049dd34607c62d4611d63ab22a6454add223@redhat.com>

mvollmer/cockpit,mareklibra/cockpit,larsu/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,andreasn/cockpit,xhad/cockpit,larskarlitski/cockpit,andreasn/cockpit,deryni/cockpit,cockpit-project/cockpit,mvollmer/cockpit,cockpituous/cockpit,stefwalter/cockpit,larsu/cockpit,andreasn/cockpit,garrett/cockpit,stefwalter/cockpit,deryni/cockpit,SotolitoLabs/cockpit,garrett/cockpit,petervo/cockpit,SotolitoLabs/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,stefwalter/cockpit,xhad/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,garrett/cockpit,dperpeet/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,harishanand95/cockpit,larsu/cockpit,xhad/cockpit,mareklibra/cockpit,cockpit-project/cockpit,xhad/cockpit,deryni/cockpit,harishanand95/cockpit,larsu/cockpit,larsu/cockpit,moraleslazaro/cockpit,dperpeet/cockpit,dperpeet/cockpit,Scribery/cockpit,martinpitt/cockpit,petervo/cockpit,dperpeet/cockpit,cockpituous/cockpit,andreasn/cockpit,stefwalter/cockpit,cockpituous/cockpit,cockpituous/cockpit,Scribery/cockpit,larsu/cockpit,larskarlitski/cockpit,larskarlitski/cockpit,Scribery/cockpit,michalskrivanek/cockpit,Scribery/cockpit,michalskrivanek/cockpit,garrett/cockpit,andreasn/cockpit,xhad/cockpit,stefwalter/cockpit,dperpeet/cockpit,deryni/cockpit,andreasn/cockpit,mvollmer/cockpit,Scribery/cockpit,xhad/cockpit,petervo/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,larskarlitski/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,martinpitt/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,mareklibra/cockpit,larskarlitski/cockpit,mvollmer/cockpit,cockpituous/cockpit,dperpeet/cockpit,petervo/cockpit,mareklibra/cockpit,dperpeet/cockpit,petervo/cockpit,martinpitt/cockpit,mvollmer/cockpit,xhad/cockpit,petervo/cockpit,harishanand95/cockpit,garrett/cockpit,mareklibra/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,deryni/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,larskarlitski/cockpit,deryni/cockpit,petervo/cockpit,andreasn/cockpit,Scribery/cockpit,larskarlitski/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,michalskrivanek/cockpit,deryni/cockpit,cockpit-project/cockpit