Handle nil gracefully

Handle nil as though it were zero.