Fixed null pointer error if null thumb preview passed in