fix to config errors in timthumb and a tweak to null request check to ensure tests pass