fix "minor" bug where extend_inhomo_f was always added

The inhomogeneous part was added even when extending basis functions,
which is technically incorrect. However, this fault did not break 4th
order convergence.