fix out of index error

Sometimes `Pl#THEME` is empty when resuming from sessions. This detects when the
list is empty and returns nothing to suppress error messages.