Added code to PID library to prevent division by zero