Fix a null pointer dereference spotted by Clang

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>