Only print invalid layer message is layer is actually invalid.