Fixed server error bug when no card matches the query