Check result is an object to prevent fatal error on root request.