core: do nothing in "/window scroll_beyond_end" if the buffer has no lines