MongoDB changes the response in 'findandmodify' command in its newer versions, so 'ok' becomes 1 instead of 0 when nothing is found.