Check ScrollDepth element exists first

fixes http://frontend.errors.guim.co.uk/guardian/frontend/group/21/