Fix segfault occuring when no debug metadata present