rename primary key sequence only if it exists

cc/ @sgrif @rafaelfranca @senny

When a table has  no sequence in the  for primary key (for example :uuid), it was not possible to rename it without using sql. This fix it.

There is no sequence to rename, that the reason why it was failing.
Can you advice what i should test instead ?