CRAFTERCMS-660

Fixed NPE caused by transaction scopes.