used powershell to set the value to false and updated the file. The .master file was generated successfully.
Wrote a small powershell snippet as part of deployment to ensure that .master is generated before setting the masterpage.
Finally figured that I had included the script at two locations. Best way to figure this out is to simply search in page view source to see if the file is included twice.