configure.ac: fix shell error during execution
When the values are not filled, because Qt is not available, we get the following error:
../configure: line 63591: test: : integer expression expected
This commit fixes it by ensuring a proper invalid value is returned in that case.
Regression from 3479ea09.