[#28794] Redirect to homepage instead of 404 with SEF and URL rewrite enabled if no com_content on homepage

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28794

Proposed fix for tracker issue #28794.