Fixed issue https://github.com/tinkerpop/rexster/issues/363
Merged PR from @emrul