Fixes error in vulnerability search lookup when team permissions are active.