That looks promising!
I’ll be testing version 0.5.0.
It’s definitely worth adding a condition that also catches cases where a file is missing. It might seem like a minor detail, but it took me quite a while
Sample file to demonstrate the error (the test.css file is missing and the plugin throws errors):