Fix /album/*/view.json API endpoint so it returns elements only for the given album

I was hitting some memory limit issues when trying to create albums via the API and this seems to be the cause.