add check for paginator theme before setting it in gateway