Fixed invariant issue when using routers as root element in react classes
- Changed `this.props.component` to `component`; due to the scope of `component`, `this.props.component` is not necessarily required