Fix for #105 (2)

with previous commit thumbnails are displayed only when variable site2media is empty (for user in admin group for example). now it works in both cases.