Fixed bug #5074: IRRE - Hook processDatamap_afterDatabaseOperations executed early