Merge pull request #9 from icemac/testbrowser

Fixed possible AttributeError