Add conditional to base theme to prevent empty pager element

Only add the element containing the pager when a pager is actually added to the page. Fixes #969
Also fixed indentation in index_helper.tmpl  which was 2 spaces instead of 4