Check for null program_map

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>