parser: check for mutable when null

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>