Fix two errors preventing this module from working on my install

-- Changes --
* Handle template content for case when $custom_config parameter is undef
* Fix error:undefined method each for nil:NilClass due to modules var not being present within template scope

-- Environment -- 
Ubuntu Server 12.04
Puppet 3.5.1
Futureparser enabled