refs #237 NPE when using ReadOnlyAutoSession with RelationalSQL