Fix of sentry errors
What does this MR do?
Sentry detected some errors, mainly about uninitialized array keys accessed. We cannot test for PHP errors (yet), that is why I trust whoops and manual testing.
Still, I added some more tests in this MR as well, testing paths that would have triggered the original errors.
How confident are you it won't break things if deployed?
Links to related issues
- added a test, or explain why one is not needed/possible...
- no unrelated changes
- asked someone for a code review
- joined #foodsharing-beta channel at https://slackin.yunity.org
- added an entry to CHANGELOG.md (description, merge request link, username(s))