Make deprecate_kwargs with bad mapping fail early