I've just added this `if` statement to prevent breaking test-agent.