Prevent NPEs when clicking null items in a wallet