Fix before put condition
Fix before put condition

Check if operation doesn't equal Operations.REMOVE would create problem
in the future when we need to support other DAO operations.

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