CRAFTERCMS-660
Fixed NPE caused by transaction scopes.
Merge pull request #185 from dejan-brkic/2.4.x

CRAFTERCMS-660