Context: fix NPE in query method when Jena model is used