[FIX] typeof null actually === 'object'

Fixed an issue where calling `isValue` with null would throw a
`TypeError` (Cannot read property then of null)
Merge pull request #2041 from huafu/fix-is-value-in-relationship-change

[FIX] typeof null actually returns 'object'