Don't warn for missing appname if version is NULL

* if version is NULL we don't need to be warned that it will be ignored
* this was a hurried addition in 8428ce0301 on top of Gabor Csardi's
  a4ef238573