WSGI: added the control for non empty X-PROJECT-ID

Closes-bug: #1228249

Change-Id: I6fbf0344fd45f9581a28a55ef852139b32e93ed7