add fix for error when stylesheet href is null

This resolves #6