Fix bug where invalid relations in include filters would hang the server