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'.
Merge pull request #815 from myzb/cm-11.0

added cherrypick 74856