Fixed issue #1643
Merge branch 'hotfix-1.5.1' of https://github.com/orientechnologies/orientdb into hotfix-1.5.1