added setDebugMode.py
added a protection against un-formatted destinationDBlock for HC