Fix issue 1311 `Uninitialized string issue in version`

No tests added because this fix only prevents PHP Notices.