Fixed possible issue with empty pools
Merge branch 'master' of https://github.com/Activiti/Activiti