DATACASS-114 - Fixed bug that crept in after refactoring
applyQueryOptions/applyWriteOptions.