CRM-15103 fix - Priceset for memberships on contribution-page not working

https://issues.civicrm.org/jira/browse/CRM-15103
Additional fix
indentation fix
Merge pull request #4020 from monishdeb/CRM-15103

CRM-15103 fix - Priceset for memberships on contribution-page not working