[BUGFIX] Check if the extension is loaded before calling the set name API