Handle caret renderin in empty list in firefox