This is a temporary fix to #4793
Merge pull request #4999 from lucacopa/component_crash

Don't make component crash