added check for ExternalInterface.available

Change-Id: Ia9464cde98e2a90556812e8048abf01b7ddfcd5c