Corrected method commitValue, now checks if the current inline panel is null.