avoid TypeError when currency symbol is nil

Fix for #290