Null check modules on loadexec.

Should fix #6552.
Oops, would still infinite loop on a bad module.

Should really fix #6552 this time.
Improve frame timing on non-Windows. Disable IdleTiming when audio is disabled.
Merge pull request #6555 from xsacha/timing2

Improve frame timing on non-Windows.
Merge remote-tracking branch 'upstream/master' into fps2

Conflicts:
	native