Avoid NPE.

Signed-off-by: Natalia Bartol <natalia.b@zend.com>