Catch rangy exception thrown in FF

Bug: 66734
Change-Id: I5b23d4fbcc7fdf926cecf49574cac02583835f07
(cherry picked from commit 8b51398301e8b866a9eae808aaf361acaf890160)