Make the return value of "Parse metadata" consistent

The output of this algorithm should be the same in all three
cases:

- the empty string
- a list of one or more metadata with unrecognized hash functions
- a list of one or more metadata with invalid ni URI

This change makes the last two cases match the output of the first.