Updating sample code to show an error screen if app ID has not been set