Fix for TRQ-2067: crash on startup around failed malloc.