hspace: fix failure handling of tryAlloc results