Issue #166 Raise error when component.instances contains no elements in the mapper. Still no idea why this happens, but it's better than indexing the empty array.