Don't allow layout errors to crash the program, just log it.