GF-41155: onpause and onresume event error when application is going For...

...eground and Background.

This is a temporary workaround until the problem is fixed at a lower level.
Enyo-DCO-1.1-Signed-off-by: Jason Robitaille <jason.robitaille@lge.com>