libathemecore: do not blindly pass NULL to strcmp() thus invoking undefined behaviour (closes #324)