convertbmp: fix issues with zero bitmasks