restapi: findbugs error

Fixing a findbug error although the warned NPE by findbugs
shouldn't occur (there is no code path which will end in NPE),
it is easier to pass its warning by using the 'else' statement.

Change-Id: I8b6749df88b78c3cdb6ef187bebc86de912856b7
Signed-off-by: Moti Asayag <masayag@redhat.com>