Do not show teammates submission on profile page

Thanks to @limbach for reporting.

They can still be seen on the assignment page when you are logged in.
Also, there are some further fixes regarding the teammate handling.