Fix non-compiling ReadGraphImpl.hasStatement implementation