BUG: Fix findByRole template methods
The original implementation would insert shared pointers set to nullptr in the return set if the resource was not of the specified type. The desired behavior is to only insert shared pointers that are not set to nullptr.