Fix problem where component name was not correctly determined when components use this class
without extending it