[CB-7820] cordova platfrom restore stops if a platforms fails to restore

handles restoration for each platform separately so that if one fails installation for
others continues. Also makes a change on how the host is checked to allow such errors
not to completely halt the execution.
There's a trailing whitespace here.

You're using tabs below.
There's trailing whitespace on the blank line above here too.