Fixing a bug that causes fatal error when a RowGateway's primary key wer...

...e changed directly : refresh the select's where clause after the update query. Attempting to solve the issue #5232.