Avoiding NPE.

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