Extended compatibility checks in JXG.debug

Before accessing document and window their existence has to be verified.
Adjust the bounding box in SketchReader.read() via JC