Fix PHP notice when screen isn't yet set