The code is doing:
order_worthwhile_check($amount, $amount_disp, '0.0005');
order_worthwhile_check($want_amount, $want_amount_disp, '0.0005');
That check is for the order as a whole, not for the partial orders produced when a trade occurs.
So if you place an order 1 BTC for 10 GBP and it gets filled as 0.99999999 BTC you will have a remaining partial order of 0.000000001 BTC.
So this isn't something that's exploitable, basically peoples orders are getting rounded up or down by very small amounts of 0.00000001 for the entire order.
So in the worst case someone might have 0.002% of their order rounded off.