Fixed compilation errors for --disable-amr due to recent node and edge b...

...oundary condition patch.

This should fix the compilation error. I also changed the code to match what is done for side boundary IDs more closely.