Only use localStorage if `persist` is truthy

Aids debugging when in iOS private browsing mode and catching exceptions, and fasterer.