Make the API script more resillient to APOD being rubbish.