Fix bug when the application contents a factory component: Test the source presence.