Allow late registration of file actions in public page

Follow up of #9254 to make it work for the public page as well

Please review @MorrisJobke @icewind1991