Fix conditional expression of custom_conditions.
Remove the check for custom_conditions.
Merge pull request #1386 from namusyaka/fix-custom_condition

Fix conditional expression of custom_conditions.