Fix NOTICE error occur when data property is not set.

I fix problem that NOTICE error occur when $data property is not set.