issue #20448: variable client is null if there's an error