Fix error due to is_on

It doesn't always happen but I got a None on an old account for the last_on