Fix missing "promise kept" status for the last line in a file.

For the last line we shortcut out using MatchRegion, but previously
we did not set the promise status.

Fixes issue 2943.
Autotest fails because of cached bundle result. Fix by splitting.
Merge pull request #805 from kacfengine/master

Reapply fix for issue 2943, and fix the failing test