Check truthiness of DOING_AJAX

Don't let wp-config.php or plugins make a liar out of you.
Merge pull request #1900 from JustinSainton/patch-8

Check truthiness of DOING_AJAX