Attempt on fixing breakage caused by pull #4575 by using a simpler and more cautious coding
Fix: Auto resume emulation if emulation was in running state to begin with
Attempted an indentation fix
Merge pull request #4580 from pal1000/master

Fix for broken pull #4575: Automatic pause/resume when memory dumping - by using a simpler and more safer coding