Always compile project if task cannot be found

Closes #2704.