Bugfix for parameter handling in findAndModify

fn was being overwritten with the final opts value instead of the intended initial value.