Fix for x3dom.reload() if x3d already initialised

This fixes the problem for issue #299.