Recreating this ticket since the old one (#4440) has been ignored and the issue is still occurring.
1. Go to a table and click the "Import" tab at the top.
2. Import any data (it doesn't have to complete successfully).
[At this point the selflink has disappeared.]
3. Click the "Operations" tab at the top.
4. Rename the table, and the JS error occurs, although the table is renamed fine.