Fixed allocation failure detection in njs_backtrace_to_string().

Found by Coverity (CID 1472503).
1 file changed