Changed argument object checking and provided array literal fallback for  array.
Changed argument object checking and provided array literal fallback for  array.

alexanderdickson/waitForImages,alexanderdickson/waitForImages