Fixed a hard .first error

Noticed the bug in code inspection; wrote a unit test for it; confirmed
the error; fixed it; retested.

Yay!  We can haz good process!