Handle the case of div with zero (width or) height when positioning unified hover box (regression introduced in 2.3.0) [#5913]