Fixed small issue where ScriptNotFoundException was not thrown if a REST...

... script didn't exist.