catch firefox errors when getting bounding box of invisible object

Change-Id: Ie03ca6a2a090fdd844cad93d094cf46e60d10e91