[firefoxos][CB-3202] Fix DeviceReady event not properly handled