fixed getDojoShape problem.  I think it returns null when the graphic is offscreen, so you have to check for that.  otherwise, it throws an exception.