Avoid division by zero and NoneType boosts