Fix StackOverflow when calling getLayoutInflater() in DialogFragment