Fixing a nil bug in the shopping cart item count code

Updated: 

This lesson is from Full Stack Rails Mastery.