Fix the usage of promise for page loader

As per https://github.com/kriskowal/q/wiki/Coming-from-jQuery

Change-Id: I5037141bdedf0dc6aa7fdf9782608b4162cb6c60