restful: fix extension initialization

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>