Fixed fatal errors when AQL statement returns a non-array that cannot be turned into a document.

Fixes #74.