Added line to check if the ephemerides is different from a NULL value. For ticket #133.