Were you able to resolve the problem. I am facing the exact same issue. It seems while building the component it does not take the rendered attribute in consideration and c:if does not affect until rendering time.
If you found a problem to this issue, please do reply. Thanks for your time.