This logic currently mishandles role grants for procedures. Procedures don't belong to a table. However, the logic tries to suffix a wildcard table onto the procedure.
This PR adds conditional logic to handle this case. it also adds a test to cover this case.
What does this PR do?