[Fix #7806] Be more verbose in "invalid layer" dialog