You should run check book and fix the errors before using any automated tools like remove unused css. The automated tools are not designed to be robust against all possible errors in the book.
EDIT: However, I have made it robust against this particular error at any rate.
https://github.com/kovidgoyal/calibr...b7a45940a669d0