Fix undefined index when filtering by unpaid. Closes #144