NMS-7185: Fixing NPE errors when querying events with offset in ReST API

This fixes http://issues.opennms.org/browse/NMS-7185

Contributor agreement already signed.