Fix issue that generates exception with Pattern when getSubject returns None
Fix issue that generates exception with viewPattern when getSubject returns None
Merge pull request #3 from montesq/master

 Fix issue that generates exception with Pattern when getSubject returns None