API: disallow inplace setting with where and a non-np.nan value (GH7656)

closes #7656