Fixes error in vulnerability search lookup when team permissions are active.
Merge commit '8148bedce3a3dcc161e9cf330501375ddb89f2f7' into HEAD