Yes, this is an inconvenience that is, unfortunately difficult to fix. Use the following workaround.
If, for example, you are displaying an attribute called Name in a custom query:
<div>{Name}</div>
use the following instead:
if (data["Name"]) {
<div>{Name}</div>
}