Only try to compress the db dump if we managed to create it

We wrap the _tasks('dump_db') in warn_only=True to allow for the old
deploy scripts being broken.  If that is the case we shouldn't try to
compress the non-existent file.