Remove redundant check for NULL when validating identifiers

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>