It appears for both passport issues and visa stamping it may be a problem if your passport expires earlier than 6 months of travel. The best move at this point since you have a couple of weeks left is to contact your nearest Indian Embassy or try the one in Washington, D.C. If you do not get an immediate response or an official follow-up within one day, contact the State Department and find out if you can get information from the bureau handling India issues. It seems from what I have seen that it may not be advisable to travel so close to your expiration date. Documentation from the consular general or equivalent in India seems to indicate they can unilaterally condition your passport if they wish to do so.