player: fix segfault when metadata is not available