mraa.c: Fixed potential segfault on free()-ing NULL in mraa_deinit()

Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>