fix php warning when creating object

fixed "Creating default object from empty value" error according to http://stackoverflow.com/questions/14112042/codeigniter-set-default-form-value-from-controller-to-view