Fix up timer exiting the event loop early
Fix up timer exiting the event loop early

Single shot timer from prior calls could cause the event
loop to exit early leading to large problems. This also
a potential null ptr derefence.

Change-Id: Ibc2aa7ff9bda202035231556ebaad36287bf39ca
Sanity-Review: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Andrew Stanley-Jones <3158427ccc6af852b3b80aff3045d95d14f60128@nokia.com>

qtproject/qtsystems,qtproject/qtsystems