KNL-1166 Don't NPE in BasicContentTypeImageService#destroy() when running in tests.

git-svn-id: https://source.sakaiproject.org/svn/kernel/trunk@134169 66ffb92e-73f9-0310-93c1-f5514f145a0a