Fix issue with code to correctly calculate J next to boundary closes #3898

Also convert a regression test to use this new option
Merge pull request #3915 from bwspenc/jint_fix

Fix issue with code to correctly calculate J next to boundary