Adding checks to assert ->checked_out is set to JModelForm

Fixing issue described in bug 30700 (http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30700), related to notices for unset properties of the $table object in JModelForm (libraries/legacy/model/form.php)