This oversight (lack of check for heap_open failure) was already fixedin another way for 7.1 --- heap_open itself always checks now.
regards, tom lane