Update updates.sh

When filling the 'connected devices' list the function in charge of this assumes (without checking) that the activity for which a 'new preference' is being alloccated for, still exists. If it does not a NullPointerException will occur and 'Settings' will 'force close'.