Fix NPE in case there are no extension attachments and the area tree was built from the intermediate format.