Work around another obscure RestController edge case that should raise a 404.

Fixes bug 1311147

Change-Id: I3dd0986c458902b03ed140872fc1938b06e75f4b