NXP-10450: fix NPE in thumbnail factory and listener