Fixes an issue with `ToReceiveNext` matcher when called on classname.