Added missing environment evaluation

Environment tag wasn't evaluated inside inner condition
tag when combine was "or".

Jira-issue: WP-1080
Added new tests

Jira-issue: WP-1080