[BUGFIX] Whitelist added objects to resource repository
When an image variant or thumbnail could not be generated during
the import of the image. The generation on the first GET request
failed also due to the missing whitelisting.
Releases: master, 3.0
(cherry picked from commit 5c7e3a803f627389c3718fd4cd8008517f791344)