Fix small bug in error reporting when parsing project file.