fixed __nonzero__ bug on GraphDatabaseService