Fix logic: only run OPTIMIZE table on Myisam tables. Refs #4611