dm: cbfs: Fix handling of invalid type