fix method call in mongo db event store and adding error check in assembler