Fix pending report check

see 71b3fabad7123da741f3ce4152017dc2232b539a