Resolve localStorage.clear() error when feature test fails before visiting page
If a spec fails before visit
ing a page, it will produce an error when the post-test hook attempts to empty the localStorage
cache. This change will make the attempt to clear the localStorage
conditional.
Edited by Mike Greiling