[fixed] checks for class instead of components

Previously the checks for components were the same as react classes. This caused reacted-nested-router to break in react@react-0.11.0-rc1. See this issue: https://github.com/facebook/react/issues/1164.