Minor fixes

Adds a test for a bug reported from Nicole, furthermore adds a check if member is filled, otherwise you would receive 500-exception on layout.jade.