Fixed bug that was crashing extension as browser action