improved/fixed the calculation of the htsp buffer delay

The htsp delay field sent with the queueStatus method seems to be negative from time to time, this PR fixes that problem.