fixed router throwing null pointer exceptions when a component wasn't found