Fixed bug in ConditionalHavewikiType() which returned the wrong value