Add waitForAppScript to ios caps handler

waitForAppScript logic was added in #4191, but the caps handler doesn't
know about it, so it never gets executed. Analogous to #4249 for
sendKeyStrategy cap.