CA-116436: Don't access pre-allocated but unwritten BAT entries

Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>