rendermanager.py 1.5: fixed potential division by zero.