nutdec: fix illegal count check in decode_main_header