Fixes an issue with association entity forms (which don't have an id field)