BUG: allow enlargement to work with empty objects (GH5226)

closes #5226