Whenever a deBayer algorithm is written, the programmer must decide how to handle 'the edges' - simply because there is not the same amount of 'surrounding data' as found in a mid-image pixel.
In the deBayer routine that I wrote to learn all about PJSR, I effectively 'synthesise' the missing data, so that I don't end up with the 'empty' surround - but it doesn't mean that the data I end up with is, statistically, any better than just not processing it in the first place.
But, like I said, just don't worry about that outer edge of pixels - it is highly likely that you will want to crop much more than that off the edge of your stacked image in any case.
Cheers,