admin - bug fix for hideLoading on errors

The hideLoading would sometimes not disappear. In some cases, this was
due to the anonymous callback as a function turning off hideloading in
the wrong place. But there was also an issue with the comparison in
throwMessage.