quick fix for firefox -> NS_ERROR_FAILURE

firefox trows an NS_ERROR_FAILURE while trying to execute getBBox on the svg element, this is a cheap workaround

for details see -> https://bugzilla.mozilla.org/show_bug.cgi?id=612118