Fix plugins_enabled and java_enabled options

Fixes a ```NameError: global name 'selfwebview' is not defined``` typo when plugins_enabled=True, display=True.  

Makes plugins_enabled and java_enabled work when display=False.