loader: fix handling of custom address spaces when adding ROM blobs