fix reject_reasons being passed as list instead of dict, fix history table on deleted themes (bug 875504)