Avoid segfault on Release builds

Signed-off-by: Stephen Celis <stephen@stephencelis.com>