Fix a crash bug when grn_obj_path() is called for a built-in proc

For example, "select" is a built-in proc.

Reported by Genki Takiuchi. Thanks!!!