fix bug 1071741 -- render the file list successfully and use correct feed URL.

This is a regression from 8b54bed209ade8ea63a514c69d8904679d497316.
Merge pull request #2767 from jezdez/bug1071741-attachement-list

fix bug 1071741 -- render the file list successfully and use correct feed URL.