Prevent errors when accessing global browser variables
v0.4.2