Handle caret renderin in empty list in firefox
ranges.box() should return corrected offsets