Theme component upgrade via rake not working

I couldn’t figure out why the update doesn’t work, but thought of a workaround–adding an uninstall command. Uninstalling the theme before using the rake install command seems to be working.

I raised a short PR to check if this approach is ok to pursue: https://github.com/discourse/discourse/pull/10138