Fixed silly bug where beforeId was always passed regardless of request.options.beforeId being there