Added try block to handle error on jQuery Mobile 1.9

On jQuery Mobile 1.9, when you navigate away from a page that has a canvas on it to a page that does not, you get an error regarding getImageData. This try block resolves the problem. I do not have a comprehensive set of tests to run it against, so I offer you this in case it helps.