apply phil's patch "partial solution for compatibility with harvest/chosen"

see https://github.com/branch14/best_in_place/commit/f245d310ea9111f06aabd4de6417c4db2c0709d3
for the original patch