Fix regression bug on non-admin unable to add new modules due to page crash