Fix comparison of possible uninitialized values