layers: Revert "Prevent layer calls with null ..."

Incomplete solution, with new null derefence side affects.

This reverts commit 9652bf9ce450f79ccf69de911a9744a8d7ed6222.

Change-Id: I5530fd496d3495bc9863ddaf709b32c6f7b95329
diff --git a/scripts/unique_objects_generator.py b/scripts/unique_objects_generator.py
index 5b5138b..9fd6328 100644
--- a/scripts/unique_objects_generator.py
+++ b/scripts/unique_objects_generator.py
@@ -250,7 +250,7 @@
 
         # Record intercepted procedures
         write('// Map of all APIs to be intercepted by this layer', file=self.outFile)
-        write('static std::unordered_map<std::string, void*> name_to_funcptr_map = {', file=self.outFile)
+        write('static const std::unordered_map<std::string, void*> name_to_funcptr_map = {', file=self.outFile)
         write('\n'.join(self.intercepts), file=self.outFile)
         write('};\n', file=self.outFile)
         self.newline()