If built without asserts enabled (e.g. -DNDEBUG), HALInitialize won't get called. Instead call outside the assert and then do the assert. Change-Id: I51546b9f9fc9a74f8a3a732c4b754257d9697e46