Fix magic unittets.

Fix segv, when magic_load() fails due to the non-availability of default
magic files.