Only populate tags in main file list

Moved populateTags to be done on the main file list.
This prevents the public file list to go through the same code and cause
an error when there is no user.

Fixes https://github.com/owncloud/core/issues/12934

@LukasReschke @icewind1991 @MorrisJobke please review