First pass at fix for writeWebGL problems.  The NULL device will still attempt some OpenGL calls which may lead to errors; will track those down before release.

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/rgl/pkg/rgl@1137 79a1b648-8b68-254f-b20b-c0b50f5137bf