Fix a stray semicolon that could lead to a segfault.

We'd try to rename a reference even if loading it failed.