Call block if given in non-production environment
Initialize namespace with nil by default

Removes warning