Prevents upgrade crash when there's no profile icons in the system. (cherry picked from commit 4ac07636)