Only enable autoframeskip if frameskipping != 0

Referencing #5373.