#105411IconFactory->getIconForRecord allows invalid $size value
Description
The method IconFactory->getIconForRecord() allows to set the $size parameter to null. This argument is then passed to IconFactory->getIcon() which will lead to a TypeError, as null is not allowed there.