Resolve a bug in `_default` handlers used in `RestController`.

Fixes-bug: 1233258
Change-Id: I5494cf4fc607cdc6833733dc1bf4022daa4c262e