[bugfix] add exception handling

Without this, the openni node might crash due to an unhandled exception when switching the image resolution, since you might get an image in the old resolution.