MDL-44334 Javascript: Prevent scroll locking for small screen heights