DP-2969 Fix problem with sending value 0 using agent.