Proposed: Check that there is a restler instance.

Checking for the existence of an instance of Restler avoids this exception from causing errors when any of the restler's components get used in non-restler enviroments.

The use case that impulsed this change was that I decided to use the Format classes as independent classes as I found them useful even when not using Restler.