Merge pull request #12511 from phausler/swift-4.0-branch-empty_data_hashing_fix

Ensure that hashing data with zero bytes avoids empty allocations and fix bridged empty data hashes from de-referencing null values