Tyler Perry defends casting Kardashian in new film