The error https://apod.nasa.gov/apod/undefined
with MMM-nasaastropic can occur when the media published by NASA is not an image (a video for example).
My new module MMM-APOD support image and video (thanks to NASA API) : https://github.com/grenagit/MMM-APOD