Fix out-of-memory handling of vasnprintf.