The actress credits Karan Johar for helping her break free of a disturbing trend