Fix for 'Cannot read property "svg" from undefined' error when using HtmlUnit

See my comment on https://github.com/DmitryBaranovskiy/raphael/issues/97 for details.

Not sure if this is the most appropriate fix, but it resolved my problems.