Fix sass function

Still trying to get it to work in situations where the settings table or
record doesn't yet exist.