2.0 added an exclamation mark (!) postfix operator that asserts a type as being non-null/non-undefined. So these checks are easy to explicitly ignore.
This pattern really isn't hard and if it saves you from one "undefined is undefined" then it was worth it.
const item = document.getElementById("content");
if (item == null) {
console.log("Render container missing");