Fix ifAnyMissingClasses to return false if no classes are missing

Fixes #1003