Fix for division by zero in RecoBTag/PerformanceDB

Added check that prevents division by zero