Remove redundant null checks

Signed-off-by: Arnaud PETIT <arnaud.petit@minesdedouai.fr>