useEntity: don't refetch when there's an error
We want to avoid refetching an entity every time its component renders if the API gave an error.
(It would probably be better to preserve the state in Redux, but this improves the situation for most cases)