g_date_new_ functions return NULL on invalid input
The functions g_date_new_dmy and g_date_new_julian return NULL if the corresponding g_date_valid_ function returns FALSE. This contradicts the documentation, which states that they return a newly allocated GDate (of course, in this case, a GDate for which g_date_valid would also return FALSE).