partial fix for STUD-145, catch invalid location errors and return a HTT...

...P 400 error to client