I had a special scenario in using wwan3 for failover from WAN to WWAN, in that the ping on WAN worked, bu the upstream DNS-resolver did not.
So no failover ocurred, unfortunately, although some processes on my router failed because of missing DNS.
May be, it is a good idea to add a DNS-check to mwan3.
Perhaps you don't need to patch anything.
Ping/HTTP check by domain name should include DNS lookup.
Using DNS forwarding with noresolv can help to avoid caching.