Add explicit checks for null and undefined in api.isObject

- fixes IE8 issue when using api.type with null or undefined: both
have type 'object'
Merge branch 'hotfix-1_5_4'