Added error should a component type be invalid.