ofp v4: Fix some table-features crashes when talking with Open vSwitch

Also, reduce code duplication.