Prevent nil project on admin pages