Make getQuality always return an integer. 

Follow-up on the error reported on the mailing list (4.3.1-pending)