common: check for nil in fips cleanup