lib/rsa: correct check after allocation in fdt_add_bignum()