MOBILE-3039 core: Fix allPromises error detection
MOBILE-3039 core: Fix allPromises error detection

FMCorz/moodlemobile2,reskit/moodlemobile,saman222/moodlemobile2,saman222/moodlemobile2,dpalou/moodlemobile2,moodlehq/moodlemobile2,reskit/moodlemobile,saman222/moodlemobile2,saman222/moodlemobile2,reskit/moodlemobile,FMCorz/moodlemobile2,moodlehq/moodlemobile2,reskit/moodlemobile,moodlehq/moodlemobile2,saman222/moodlemobile2,moodlehq/moodlemobile2,reskit/moodlemobile,reskit/moodlemobile,moodlehq/moodlemobile2,dpalou/moodlemobile2,dpalou/moodlemobile2,moodlehq/moodlemobile2