return undefined if objectpath.get path param is not a string

fixes case in template rendering when app_settings is undefined #408