Don't try to scroll non-existing element into the view

This should fix #175.