Show correct error for no default metadata

The user sees segfault without handling.
This marely happens, but it is hard to find the cause once happens.
Merge pull request #31 from tomykaira/usability_fix

Show correct error for no default metadata