meminfo - proc_sysmem_get_X: return 0 when the pointer is NULL

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>