Fixed an out of bounds error caused by the failure to check the isChrome variable in a conditional branch.
Merge pull request #236 from klittlepage/master

Index out of bounds error when isChrome is false