fix NPE thrown on getAll requests with single key
Incorporating code review comments for changes in R2Store