Fix #1349
Test for #1349
Merge pull request #1357 from sjinks/issue-1349

[FIX] Phalcon\Forms\Form::getMessages() produces PHP error if form is valid