getAll now returns an empty object when there are no resources

Before you had to handle `undefined` yourself.

Fixes #597