Avoid drawing the fill bar our of the progress bar. Avoid zero divided by zero that return 'nan' (Not a Number), that does not bother lua code, but will crash libblitbuffer.so when it gets nan as a coordinate.