catch host-in-build error during fact import

Quick patch to avoid failed upload jobs when a host is in build mode. We can do this better once a dedicated exception type is added to core.