Fix the 3.1.4 regression to JViewLegacy::getName()

Signed-off-by: Don Gilbert <don@electriceasel.com>

Tracker Item: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31565