Make sure measuring spans are removed from all elements (including the ones that were changed).  Resolves second half of issue #576.
Add a check if defaultEm is zero, and retry after a delay if it is.  WebKit seems to have this happen sometimes when web fonts are used for the page (though hard to reproduce).  Resolves issue #576.
Merge branch 'issue576' into develop.  Issue #576.