Check existance of user survey before calling it

As the user survey code isn't included in the header-footer template
this causes a javascript error on every page load. This should stop the
init being called if it hasn't been loaded onto the page.