Do a QBS_CHECK on invalid project setup parameters.

The current code does a QBS_ASSERT and returns a null pointer, which
is not expected by callers.

Change-Id: I85a6fd8e3e60c56d65d65ef395dd2b8765d80bd2
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>