The missing modules of a detector are non included in the q range calculation.
The method to do this would be to find the intersection of the ray and a rectangle for each missing module then subtract those intersections from the overall intersection with the detector and camera tube intersection range.