Add missing va_end() call in error case

Spotted by coverity.