Cope with unset (nil) values in the player price calculation.

Fixes #6.