Fix #45 - Activating/Suspending processDef throws Exception

Proposed fix for issue #45