Fixes no-scrolling bug for overflowed div

Sometimes rootScrollHeight and el.scrollHeight are 0, which breaks the scolling.