Fixing `hypermedia()` by ensuring no `link` Objects when a collection is empty, added a test