Fix engine crashes when parsing invalid '-log' argument value.