Hitta sista värdet som inte är tomt