change generated UPDATE statement so it does not SET columns that were not in state map
Merge pull request #4 from newbrough/bugfix/FB5856

change generated UPDATE statement so it does not SET columns that were not in state map