RT1697: Check for failure of sk_XXX_new_null

Generally out of memory, but at least try to print an error.