fixed bug which prevents calling a callback after executing setValue

Jira issue: WP-1125