End If output is set inactive even though one input is active

I'm trying to create a workflow which can be used for inserting data in the database. Ihave a simplied version attached. The workflow is mostly nodes for error handling and input verification.

The first step is to check if the selected file contains the required columns. The Java IF node will accordingly assign the active branch. If columns do not match the workflow sets an error message and then goes to and End IF node which joins back to the "main branch". (best to look at attache dworkflow to understand).

The issue is that if the workflow executes succesfully all is fine. But if the columns are wrong this last End IFs output port is inactive even though one of the incoming ports is active. How can I solve this?