fix dropmask dereference even when NULL

Signed-off-by: Nikolay Dimitrov <ndimitrov@setelis.com>