SERVER-13601 assert upon failing to run a replicated command

(cherry picked from commit ea2102c1946506a888707aec06995c1c736075d6)
Merge remote-tracking branch 'upstream/master'