Changed api error reporting to always use a referrer on error if BROWSER is TRUE.