check getBoundingClientRect() did not return null

Sometimes in Safari range.getBoundingClientRect() is null - this seems to occur when the editor is not in a visible portion of the DOM. Using nullRect fixes the null ref error, and does not seem to have any adverse effects.