Fixed bug that prevented UIs from being enriched with the "id" property

If a view is only ever loaded and not created, it wasn't getting the "id" property.