restapi: compare to Boolean with equals

Fix findbug warning - compare to Boolean with equals instead of ==.

Change-Id: If7f0738730552bb8d2b935551bf9fcf938971834
Signed-off-by: Alissa Bonas <abonas@redhat.com>