Fix nil-check. for 'obj'.