Workaround 'condition is redundant or null deref is possible' cppcheck FP