Check if detail view attributes are null rather than empty strings. Fixes #3