Handle no dependencies in metadata correctly