Fixed travis build failure caused due to bson warning