refs #4338 prevent javascript error on FireFox