Fixes issue where XDebug aborts the thread for maximum function count.
Fixes an issue where new Themes attached to a project were not being installed on update.