added null check to custom CSS