[meta] fix segfault when no metadata in file

Thanks to bdesroch@ for the fix !