Check if text/html, instead of not JSON

When dynamiccaly generating css/js, the profiler messes up the file. So instead of blacklisting, just check of it is text/html instead.
(Fixes problems with the latest Basset develop branch from @jasonlewis)