handle case where elem is undefined - apparently happens in FF when invoked during onunload
bump
Merge pull request #1 from Tradeshift/ffundefined

Fix weird FF onunload error