webadmin: Coverity CID 1231855 (NULL_RETURNS)

Added assertions to make sure developers properly use the method.

Change-Id: Ie5c451a9d52942d703f3f1eb05ad301fbf355f55
Signed-off-by: Lior Vernia <lvernia@redhat.com>