Minor cleanup to Context registration code.
Minor cleanup to Context registration code.

foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,foam-framework/foam2,jacksonic/vjlofvhjfgm,TanayParikh/foam2,jacksonic/vjlofvhjfgm,TanayParikh/foam2,jacksonic/vjlofvhjfgm