Fix bug with invalid lights and add better feedback.