PYTHON-785 No need for getlasterror before filemd5.

Obsoleted by commit fab611f63.
PYTHON-807 Silence warnings when testing Database.error().