Fixed getFormTitle bug where label was always null. Issue: #541