Sadly enough the whole deployment infrastructure is a trainwreck. The bug you mention is indeed caused by a problem in the project's metadata wrt the WTP.