Add a flag (for example -w) that would signal that a solid white material will
be used for all missing materials instead of causing and error and the
compression to fail.
Once again I have a solution for this created already, but it seems as though
you are not working on this project right now.