Fix error where API state is requested and printer is offline

Expected to get a response from the API but nothing was returned.

Looking at console output, it seems that self._temp == None and was raising an error.