Override monthend flag only if invalid

NA (not applicable) may be both valid and not the default