No bug - Reduce potential NPE

Signed-off-by: Dawid Pakuła <zulus@w3des.net>