Fix undefined method 'empty?' when flexi record's total/completed is a number.