util: isObject should always return boolean

Fix small bug where isObject would return the original object instead of
true.