Fix bundle state check logic for feature-test-plugin