fix first error in #228. in the TPB search module, we check that the element exists before fetching its value.

Also include err.status 300 as an error (as defined in angularJS $http docs).
#228 include err.status 300 as an error (as defined in angularJS $http docs).