check for config-parameter showUndated

Added extra if to take value of config-parameter showUndated into account.
And corrected a little typo from 'nu' to 'null'