Added a check to see whether notes are locked or not before accessing Preferences as it is totally possible for anyone with access to the phone to disable YubiMode or enable the ignore lock function to access the notes and delete and create notes