Added a applicationId check in local storage

Local storage may not get the ‘key’ which causes the application to
fail. Now checks to see if that ‘key’ exists and adds it if it does not.
Fix the binary conflict