Fixed NPE in form extraction from entity.