minor bugfix to controller whereby RestControllers with un-exposed REST methods would fail.
minor bugfix to controller whereby RestControllers with un-exposed REST methods would fail.

--HG--
extra : convert_revision : svn%3A77541ad4-5f01-0410-9ede-a1b63cd9a898/trunk%406306

lucius-feng/tg2,lucius-feng/tg2