mapfishapp: prevent calling split on null - closes #46