Fix empty metadata

This stops the view choking on bad data being passed back by the finder-api. We should probably stop that happening at the root, but this is a quick fix which will become a nice belt-and-braces backup once finder-api is sorted.