Anwar's lawsuit over gay slur by former Malaysian premier is dismissed