added a fast hack to avoid NULL entries in *Picture and PictureTag
relations (somehow empty arrays always appear as an array with one
empty element in the server, not good, but I have no clue how to
fix this!)