[DDMD] [trivial] Explicitly compare with zero

This causes an error in D as int does not implicitly convert to bool.