Getting project item improved (fixes #731)