 	 */
 	public function unregister(obj:IHistoryManagerClient):void
 	{
-		if (!ApplicationGlobals.application.historyManagementEnabled)
+        if (!("historyManagementEnabled" in ApplicationGlobals.application) ||
+            !ApplicationGlobals.application.historyManagementEnabled)
 			return;
 
 		// Find the index of the object in the Array of all

	 */	
	public function register(obj:IHistoryManagerClient):void
	{
		if (!ApplicationGlobals.application.historyManagementEnabled)
			return;

		// Ensure that this object isn't already registered.

		if (appID)
			return;

		if (!("historyManagementEnabled" in ApplicationGlobals.application) ||
            !ApplicationGlobals.application.historyManagementEnabled)
			return;

		var loaderInfo:LoaderInfo;
