Don't queue a (null) download request when building the JSON failed.
Clarify error message.