Fixes bug with bookmarklets throwing an error (#41)