Prevent NPE when parameter null and hidden attribute is set to true.