mkmux: fix crash when wrong localtime argument was used