How to fix the «Required parameter 'theme_dir' was not passed» failure while saving a product in the backend?

The solution is here: