fix a minor bug in WikidataDao

Bug spotted...get a null pointer when the statement is an image or something