Amend 5c95479cee5a to fix crash when pasting files in projectmanager
- pasting more than one file in a folder lead to a crash
- use back() instead of rbegin() to conserve Qt 5.5 compatability
(cherry picked from commit f3229baa137b965529c3d8685070010ff392b593)