Fixes #20. Throw error if component ID is registered more than once.