prevent segfault
use more appropriate assertions
Merge branch 'sharding' of https://github.com/triAGENS/ArangoDB into sharding