Move this to the try block above that it really only should be executed if the project that should be renamed is loaded correctly. (Probably the same bug as with rename)