restful: fix registry loading

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