Fixed the error message that pops up when create, renaming, or deleting
any resource that isn't a script.