better detect ajax and other non-page requests to ensure that content-wr...

...appers etc are not included for ajax and snippets;

problem introudced by https://github.com/civicrm/civicrm-wordpress/commit/b9011c2adad0bd245836d1705f580553df78540b