Fixes the package read template for revisions where they were deleted.

Replaced text.lower() with str(deleted).lower()
An actual working fix for issue wrt presentation of state in revisioned dataset read page