Added error handling ACT-1654
Merge branch 'master' of https://github.com/Activiti/Activiti