Fixed status_calc_regen crash issue:http://hercules.ws/board/tracker/issue-1298-mapserver-crashed-item-check/

Follow up to 7cd967f812ab741c41c416fb9f7c2a921c36e947