Fix traffic monitor

Trying to solve #527 again.

I moved the (strcmp(ifname, get_wan_ifname(unit)) check up: I believe in case of USB modem, it is possible to have a ppp* interface by dialing *99# or something like that.

I have added negative checks to solve the issue with not initializing or possibly too late initializing backup values.