Fixed issue with use of $currentDate on MongoDB 2.4.x