ea74a41 Avoid comparing None to an integer (#1141242)

Authored and Committed by m4rtink 9 years ago
    Avoid comparing None to an integer (#1141242)
    
    None to int comparison became an illegal operation in Python 3.