Moved SendData into catch block so you can throw a RestException for non existant objects
Merge pull request #10 from Scimon/master

Moving the sendData inside the try/catch so that errors thrown aren't overtaken by sendData.