MYFACES-3695 'Cannot set header. Response already committed.' on WebSphere Application Server 7 and 8 (do not write header if response was already committed)