Don't call not existing method of root window when running within a enyo2 app

Signed-off-by: Simon Busch <morphis@gravedo.de>