dpi: Fix DpiRestApi.__init__ when it fails to load the dpifile