Tnrs properties update

Debugging and temporary kludge to correct a null pointer error in contextQuery.