Log warning message if 'set_if' argument cannot be evaluated properly

fixes #6968