libmemif: fix possible segfault on memif_get_details

No match.